package machinery.state;

import machinery.Machinery;

/**
 * 状态模式：故障状态实现
 */
public class MalfunctionState implements MachineryState {
    @Override
    public void handle(Machinery machinery) {
        System.out.println(machinery.getName() + " 处于故障状态，需要紧急维修");
    }
    
    @Override
    public String getStateName() {
        return "故障状态";
    }
} 